
export default {
    "bpmn:SequenceFlow":{
        formKey:"sequence",
        tab:[
            {
                name:"常规",
                groups:[
                    {
                        name:"基础信息",
                        prop:{},
                        fields:[
                            {
                                name:"id",
                                desc:"节点ID",
                                defaultValue:null,
                                readOnly:true
                            },
                            {
                                name:"type",
                                desc:"条件类型",
                                type:"select",
                                defaultValue:[
                                    {
                                        key:"1",
                                        name:"脚本"
                                    },
                                    {
                                        key:"2",
                                        name:"表达式"
                                    }
                                ],
                                isShow:(element)=>{
                                    let sourceRef = element.businessObject.sourceRef;
                                    return !("bpmn:StartEvent" === sourceRef.$type);
                                }
                            },
                            {
                                name:"condition",
                                desc:"流转条件",
                                defaultValue:null,
                                // 是否显示字段,该方法优先于dependOn
                                isShow:(element)=>{
                                    let sourceRef = element.businessObject.sourceRef;
                                    return !("bpmn:StartEvent" === sourceRef.$type);
                                },
                                // isShow可以显示,那么就会依据下方信息判断什么时候显示
                                // 如下配置意思表示：当前表单中配置的字段名称为type的并且当该字段值为1的时候就会显示
                                dependOn:{
                                    field:"type",
                                    value:"1"
                                }
                            }
                        ]
                    }
                ]
            }
        ],
    }
}